//
//  CLReadController+Operation.h
//  CLBrowser
//
//  Created by 梁慧聪 on 2022/7/31.
//

#import "CLReadController.h"
#import "CLReadViewController.h"
#import "CLReadViewController.h"
#import "CLReadViewBGController.h"
@class CLReadRecordModel;
NS_ASSUME_NONNULL_BEGIN

@interface CLReadController (Operation)
/// 获取上一页控制器
- (UIViewController *)getAboveReadViewController;
/// 获取下一页控制器
- (UIViewController *)getBelowReadViewController;
/// 获取当前阅读记录阅读页
- (CLReadViewController *)getCurrentReadViewController:(BOOL)isUpdateFont;
/// 获取指定阅读记录阅读页
- (CLReadViewController *)getReadViewController:(CLReadRecordModel *)recordModel;
/// 更新阅读记录(左右翻页模式)
- (void)updateReadRecord:(CLReadViewController *)controller;
/// 更新阅读记录(左右翻页模式)
- (void)updateReadRecordWithRecordModel:(CLReadRecordModel *)recordModel;
/// 获取仿真模式背面(只用于仿真模式背面显示)
- (CLReadViewBGController *)getReadViewBGController:(CLReadRecordModel *)recordModel;
- (CLReadViewBGController *)getReadViewBGController:(CLReadRecordModel *)recordModel targetView:(UIView * __nullable)targetView;
/// 获取当前记录上一页阅读记录
- (CLReadRecordModel *)getAboveReadRecordModel:(CLReadRecordModel *)otherRecordModel;
/// 获取当前记录下一页阅读记录
- (CLReadRecordModel *)getBelowReadRecordModel:(CLReadRecordModel *)t_recordModel;
/// 跳转指定章节(指定页面)
- (void)goToChapter:(NSString *)chapterID;
- (void)goToChapter:(NSString *)chapterID toPage:(NSInteger)toPage;
/// 跳转指定章节(指定坐标)
- (void)goToChapter:(NSString *)chapterID location:(NSInteger)location;
/// 跳转指定章节 number:页码或者坐标 isLocation:是页码(false)还是坐标(true)
- (void)goToChapter:(NSString *)chapterID number:(NSInteger)number isLocation:(BOOL)isLocation;
@end

NS_ASSUME_NONNULL_END
